﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FantastPlatform.Community.IMode;
using FantastPlatform.Framework.IService;

namespace FantastPlatform.Community.IService
{
    public interface IHouseHoldService:IDataService<IHouseHold>
    {
        /// <summary>
        /// 通过住宅ID获得所有房屋号
        /// </summary>
        /// <param name="houseDistrictId"></param>
        /// <returns></returns>
        IList<IHouseHold> GetHouseHoldByHouseDistrictId(int houseDistrictId);
        /// <summary>
        /// 根据二维码获得房屋信息
        /// </summary>
        /// <param name="number"></param>
        /// <returns></returns>
        IHouseHold GetHouseHoldInfoByNumber(string number);
        /// <summary>
        /// 保存住户信息
        /// </summary>
        /// <param name="houseHold"></param>
        void SavehouseHold(IHouseHold houseHold);
        /// <summary>
        /// 根据小区名得到房屋
        /// </summary>
        /// <param name="houseDistrictName"></param>
        /// <returns></returns>
        object[] SearchByCondition(string houseDistrictName);
    }
}
